package puly.arr;

public class EqualsTest {
    public static void main(String[] args) {
        Person person1=new Person("zhangsan",10);
        Person person2=new Person("zhangsan",10);
        Person person3=new Person("zhangsan",20);
        System.out.println(person2==person1);
        System.out.println(person2.equals(person1));
        System.out.println(person1.equals(person3));
    }
}
